package com.threefood.service.impl;

import java.util.List;

import com.threefood.dao.UserDao;
import com.threefood.model.User;
import com.threefood.service.UserService;

public class UserServiceImpl implements UserService {

    UserDao userDao;

    public boolean login(User u) {
        User user = userDao.login(u);
        if (user == null) {
            return false;
        }
        return true;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

}
